const list=[
    {
        id:1,
        name:"小明",
        gender:'男',
        age:20,
        score:80
    },
    {
        id:2,
        name:"小张",
        gender:'男',
        age:24,
        score:50
    },
    {
        id:3,
        name:"小画",
        gender:'女',
        age:21,
        score:40
    },
    {
        id:4,
        name:"猪小明",
        gender:'男',
        age:30,
        score:98
    }
]

//需求：把不及格的揪出来
const results=list.find(item=>{
    console.log(item)
    return item.score<=60
})
const results1=list.findIndex(item=>{
    console.log(item)
    return item.score<=60
})
console.log('----------------下面是不及格的揪出来了')
console.log(results1)
console.log(results)
